package a8;

import java.awt.Graphics2D;

public class Spiral {
	public Spiral() {

	}
	/**
	 * 	
	 * @param g2 Draws the spiral
	 */
	public void draw(Graphics2D g2) {

		for(int i = 0; i < 8; i++)
		{
			if(i!=0)
				g2.drawLine(10*i, 10+10*i, 170-10*i, 10+10*i);
			g2.drawLine(170-10*i, 10+10*i, 170-10*i, 170-10*i);
			g2.drawLine(10+10*i, 170-10*i, 170-10*i, 170-10*i);
			if(i!=7)
				g2.drawLine(10+10*i, 20+10*i, 10+10*i, 170-10*i);
		}


	}
}
